package com.dsg.service.Impl;

import com.dsg.entity.Contract;
import com.dsg.entity.Contractstart;
import com.dsg.entity.Contracttype;
import com.dsg.mappers.ContractMapper;
import com.dsg.service.ContractService;
import com.dsg.vo.ContractDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("contractService")
public class ContractServiceImpl implements ContractService {
    @Resource
    private ContractMapper contractMapper;
    @Override
    public List<Contractstart> seachAllContractstart() {
        return contractMapper.QueryAllContractstart();
    }

    @Override
    public List<Contracttype> seachAllContracttype() {
        return contractMapper.QueryAllContracttype();
    }

    @Override
    public List<Contract> seachAllContract(ContractDto contractDto) {
        return contractMapper.QueryAllContract(contractDto);
    }
}
